package org.sensornet2010.co2sh.core;

import java.util.Date;

/*
 * This objects encapsulates the information of a measurement event.
 */
public class SensorData {
	
	private byte[] 		sound;
	private Date 		timestamp;
	private String 		id;
	private long		duration;
	private String		sensuinoVersion;
	private int			co2Value;
	
	public SensorData(String sensorId, byte[] acqSignal, String sensuinoVersion){
		this.id = sensorId;
		this.sound = acqSignal;
		this.timestamp = new Date();
		this.duration = acqSignal.length;
		this.sensuinoVersion = sensuinoVersion;
	}
	
	public byte[] getSound() {
		return sound;
	}
	public Date getTimestamp() {
		return timestamp;
	}
	public String getId() {
		return id;
	}
	public long getDuration() {
		return duration;
	}
	public String getSensuinoVersion() {
		return sensuinoVersion;
	}

	public void setCo2Value(int co2Value) {
		this.co2Value = co2Value;
	}

	public int getCo2Value() {
		return co2Value;
	}
	
	
	
	
}
